<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWorkerWorkloadsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('worker_workloads', function (Blueprint $table) {
            $table->increments('id');
            $table->timestamp('start_at')->comment('开始时间');
            $table->timestamp('end_at')->comment('结束时间');
            $table->integer('department_id')->comment('科室');
            $table->integer('worker_id')->comment('医师ID');
            $table->float('income',8,2)->comment('金额');
            $table->integer('passengers')->comment('人次');
            $table->string('project')->comment('收入项目');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('worker_workloads');
    }
}
